{include file="public/header"/}
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="{:url('index/survey')}">首页</a>
        <a>
          <cite>导航元素</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
{in name='group_add' value='$identification'}
<xblock>
    <button class="layui-btn" onclick="xm_admin_show('添加套餐','{:url('AuthorityGroup/meal_add')}')"><i class="layui-icon"></i>添加</button>
</xblock>
{/in}
<table class="layui-table">
    <thead>
    <tr>
        <th>
            <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
        </th>
        <th>名称</th>
        <th>添加时间</th>
        <th >操作</th>
    </tr>
    </thead>
    <tbody>
    {volist name='meal' id='vo'}
    <tr>
        <td>
            <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
        </td>
        <td>{$vo->name}</td>
        <td>{$vo->create_time}</td>
        <td class="td-manage">
            {in name='group_edit' value='$identification'}
            <a title="编辑套餐"  onclick="xm_admin_show('编辑','{:url('AuthorityGroup/authority_group_edit',['id'=>$vo->id])}')" href="javascript:;">
                <i class="layui-icon">&#xe63c;</i>
            </a>
            {/in}
            <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                <i class="layui-icon">&#xe640;</i>
            </a>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>